const ua = navigator.userAgent

export function isMobile() {
  return /mobile|android|iphone|ipod|phone|ipad/i.test(ua.toLowerCase())
}

export function isPc() {
  return !isMobile()
}

export function inWx() {
  return /MicroMessenger/i.test(ua)
}

export function isIOS() {
  return /iPad|iPhone|iPod/.test(ua)
}
